/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yipinsoft.modules.wechat.user.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信用户记录系统中用户或会员的微信信息Entity
 * @author liulin
 * @version 2017-10-23
 */
public class WechatUser extends DataEntity<WechatUser> {
	
	private static final long serialVersionUID = 1L;
	private String useid;		// 系统中的用户或会员ID
	private String tableName;		// 表名
	private String openid;		// 微信openId
	private String nickame;		// 昵称
	private String userLanguage;		// 语言
	private String city;		// 城市
	private String province;		// 省份
	private String country;		// 国家
	private String headimageurl;		// 头像图片
	private String unionid;		// unionId
	private Integer sexid;		// sexId
	
	public WechatUser() {
		super();
	}

	public WechatUser(String id){
		super(id);
	}

	@Length(min=1, max=64, message="系统中的用户或会员ID长度必须介于 1 和 64 之间")
	public String getUseid() {
		return useid;
	}

	public void setUseid(String useid) {
		this.useid = useid;
	}
	
	@Length(min=1, max=64, message="表名长度必须介于 1 和 64 之间")
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	@Length(min=1, max=64, message="微信openId长度必须介于 1 和 64 之间")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=1, max=100, message="昵称长度必须介于 1 和 100 之间")
	public String getNickame() {
		return nickame;
	}

	public void setNickame(String nickame) {
		this.nickame = nickame;
	}
	
	@Length(min=1, max=20, message="语言长度必须介于 1 和 20 之间")
	public String getUserLanguage() {
		return userLanguage;
	}

	public void setUserLanguage(String userLanguage) {
		this.userLanguage = userLanguage;
	}
	
	@Length(min=1, max=100, message="城市长度必须介于 1 和 100 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=1, max=100, message="省份长度必须介于 1 和 100 之间")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=1, max=100, message="国家长度必须介于 1 和 100 之间")
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	@Length(min=1, max=200, message="头像图片长度必须介于 1 和 200 之间")
	public String getHeadimageurl() {
		return headimageurl;
	}

	public void setHeadimageurl(String headimageurl) {
		this.headimageurl = headimageurl;
	}
	
	@Length(min=1, max=64, message="unionId长度必须介于 1 和 64 之间")
	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	
	@NotNull(message="sexId不能为空")
	public Integer getSexid() {
		return sexid;
	}

	public void setSexid(Integer sexid) {
		this.sexid = sexid;
	}
	
}